function [norm_ku,norm_QR_sch, norm_dire, time_ku,time_QR_sch,time_dire] = compare_algor(m, n, k)
%     A = generateRandomToeplitz(m, n);
    A = rand(m, n);
    beta_std = rand(n, k);
    T = A * beta_std;

    % 计算 QR_schmidt 的时间和结果
    tic;
    Beta = QR_schmidt(A, T);
    elapsed_time = toc;
    time_QR_sch = elapsed_time;
    norm_QR_sch = norm(A * Beta - T, "fro");
  
 
    % 计算 directly_solve 的时间和结果
    tic;
    Beta = pinv(A)*T;
    elapsed_time = toc;
    time_ku = elapsed_time;
    norm_ku = norm(A * Beta - T, "fro");

end
